package com.common.repository.judicialpersonal;

import com.common.entity.personal.PersonalEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author johnny
 * @create 2021-05-14 1:43 下午
 **/
public interface PersonalRepository extends JpaRepository<PersonalEntity, Long> {

    void deleteByIdIn(List<Long> ids);

    PersonalEntity findByName(String name);

    PersonalEntity findByCheckEvaluateId(Long checkEvaluateId);

    List<PersonalEntity> findByDepartmentId(Long departmentId);

}